<div id="frame-crop-image">
<?php
if(count($images) > 0)
{
    if($modelName=='Article'){
        echo $this->renderPartial('image/article', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
    elseif($modelName=='Articlecategory'){
        echo $this->renderPartial('image/articleCategory', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
	elseif($modelName=='Slideshow'){
        echo $this->renderPartial('image/slideshow', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
    elseif($modelName=='Banner'){
        echo $this->renderPartial('image/banner', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
    elseif($modelName=='Categories'){
        echo $this->renderPartial('image/category', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
    elseif($modelName=='Product'){
        echo $this->renderPartial('image/product', array('images'=>$images, 'modelName'=>$modelName, 'modelId'=>$modelId));
    }
}
else
{
    echo Yii::t('BackEnd', 'No images');
}
?>
</div>